package com.Indb.pojo;

import java.util.Objects;

public class Indb {
    private Integer id;
    //批次号
    private Integer batch_id;
    //读取文件名
    private String from_file;
    //内容
    private String content;

    public Indb() {
    }

    public Indb(Integer id, Integer batch_id, String from_file, String content) {
        this.id = id;
        this.batch_id = batch_id;
        this.from_file = from_file;
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBatch_id() {
        return batch_id;
    }

    public void setBatch_id(Integer batch_id) {
        this.batch_id = batch_id;
    }

    public String getFrom_file() {
        return from_file;
    }

    public void setFrom_file(String from_file) {
        this.from_file = from_file;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Indb indb = (Indb) o;
        return Objects.equals(id, indb.id) &&
                Objects.equals(batch_id, indb.batch_id) &&
                Objects.equals(from_file, indb.from_file) &&
                Objects.equals(content, indb.content);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, batch_id, from_file, content);
    }

    @Override
    public String toString() {
        return "Indb{" +
                "id=" + id +
                ", batch_id=" + batch_id +
                ", from_file='" + from_file + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
